package com.example.j20240422springtrans.service;

import com.example.j20240422springtrans.mapper.LogMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
public class LogService {
    @Autowired
    LogMapper logMapper;
    @Transactional
    public Integer insertLog(String userName, String op) {
        return logMapper.insertLog(userName, op);
    }
}
